package com.shahe.GirlsDay.util;

import org.json.JSONException;
import org.json.JSONObject;

public class BasicInfo {
	private String adddate = " ";
	private int userid = 0;
	private String daytype = "0";
	private String flow = "0";
	private String colour = "0";
	private String mucus = "0";
	private String temperature = " ";
	private String weight = " ";
	private String hadfun = "0";
	private String takepills = "0";
	// private String mood = "0";
	private String acne = "0";
	private String cramps = "0";
	private String headaches = "0";
	private String backaches = "0";
	private String bloating = "0";
	private String bodyaches = "0";
	private String nausea = "0";
	private String neckaches = "0";
	private String tenderBreasts = "0";
	private String spotting = "0";
	private String periodPain = "0";
	private String dizziness = "0";
	private String cold = "0";
	private String sleepless = "0";
	private String flatulence = "0";
	private String diarrhea = "0";
	private String constipation = "0";
	private String fever = "0";
	private String stayUp = "0";
	private String bath = "0";
	private String coldFood = "0";
	private String spicyFood = "0";
	private String friedFood = "0";
	private String coffeeTea = "0";
	private String exercise = "0";
	private String heavyWork = "0";
	private String drink = "0";
	private String karaoke = "0";
	private String shopping = "0";
	private String party = "0";
	private String extractTooth = "0";
	private String note = " ";
	private JSONObject jsonsub = new JSONObject();

	public BasicInfo() {
	}

	public BasicInfo(JSONObject json) throws JSONException {
		
		this.jsonsub = json.getJSONObject("basicinfoPK");
		this.adddate = jsonsub.getString("adddate");
		this.userid = jsonsub.getInt("userid");
		this.daytype = json.getString("daytype");
		this.flow = json.getString("flow");
		this.colour = json.getString("colour");
		this.mucus = json.getString("mucus");
		this.temperature = json.getString("temperature");
		this.weight = json.getString("weight");
		this.hadfun = json.getString("hadfun");
		this.takepills = json.getString("takepills");
		// this.mood = json.getString("mood");
		this.acne = json.getString("acne");
		this.cramps = json.getString("cramps");
		this.headaches = json.getString("headaches");
		this.backaches = json.getString("backaches");
		this.bloating = json.getString("bloating");
		this.bodyaches = json.getString("bodyaches");
		this.nausea = json.getString("nausea");
		this.neckaches = json.getString("neckaches");
		this.tenderBreasts = json.getString("tenderBreasts");
		this.spotting = json.getString("spotting");
		this.periodPain = json.getString("periodPain");
		this.dizziness = json.getString("dizziness");
		this.cold = json.getString("cold");
		this.sleepless = json.getString("sleepless");
		this.flatulence = json.getString("flatulence");
		this.diarrhea = json.getString("diarrhea");
		this.constipation = json.getString("constipation");
		this.fever = json.getString("fever");
		this.stayUp = json.getString("stayUp");
		this.bath = json.getString("bath");
		this.coldFood = json.getString("coldFood");
		this.spicyFood = json.getString("spicyFood");
		this.friedFood = json.getString("friedFood");
		this.coffeeTea = json.getString("coffeeTea");
		this.exercise = json.getString("exercise");
		this.heavyWork = json.getString("heavyWork");
		this.drink = json.getString("drink");
		this.karaoke = json.getString("karaoke");
		this.shopping = json.getString("shopping");
		this.party = json.getString("party");
		this.extractTooth = json.getString("extractTooth");
		this.note = json.getString("note");
	}

	public String getAdddate() {
		return adddate;
	}

	public void setAdddate(String adddate) {
		this.adddate = adddate;
	}

	public int getUserid() {
		return userid;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}

	public String getDaytype() {
		return daytype;
	}

	public void setDaytype(String daytype) {
		this.daytype = daytype;
	}

	public String getFlow() {
		return flow;
	}

	public void setFlow(String flow) {
		this.flow = flow;
	}

	public String getColour() {
		return colour;
	}

	public void setColour(String colour) {
		this.colour = colour;
	}

	public String getMucus() {
		return mucus;
	}

	public void setMucus(String mucus) {
		this.mucus = mucus;
	}

	public String getTemperature() {
		return temperature;
	}

	public void setTemperature(String temperature) {
		this.temperature = temperature;
	}

	public String getWeight() {
		return weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}

	public String getHadfun() {
		return hadfun;
	}

	public void setHadfun(String hadfun) {
		this.hadfun = hadfun;
	}

	public String getTakepills() {
		return takepills;
	}

	public void setTakepills(String takepills) {
		this.takepills = takepills;
	}

	/*
	 * public String getMood() { return mood; }
	 * 
	 * public void setMood(String mood) { this.mood = mood; }
	 */

	public String getAcne() {
		return acne;
	}

	public void setAcne(String acne) {
		this.acne = acne;
	}

	public String getCramps() {
		return cramps;
	}

	public void setCramps(String cramps) {
		this.cramps = cramps;
	}

	public String getHeadaches() {
		return headaches;
	}

	public void setHeadaches(String headaches) {
		this.headaches = headaches;
	}

	public String getBackaches() {
		return backaches;
	}

	public void setBackaches(String backaches) {
		this.backaches = backaches;
	}

	public String getBloating() {
		return bloating;
	}

	public void setBloating(String bloating) {
		this.bloating = bloating;
	}

	public String getBodyaches() {
		return bodyaches;
	}

	public void setBodyaches(String bodyaches) {
		this.bodyaches = bodyaches;
	}

	public String getNausea() {
		return nausea;
	}

	public void setNausea(String nausea) {
		this.nausea = nausea;
	}

	public String getNeckaches() {
		return neckaches;
	}

	public void setNeckaches(String neckaches) {
		this.neckaches = neckaches;
	}

	public String getTenderBreasts() {
		return tenderBreasts;
	}

	public void setTenderBreasts(String tenderBreasts) {
		this.tenderBreasts = tenderBreasts;
	}

	public String getSpotting() {
		return spotting;
	}

	public void setSpotting(String spotting) {
		this.spotting = spotting;
	}

	public String getPeriodPain() {
		return periodPain;
	}

	public void setPeriodPain(String periodPain) {
		this.periodPain = periodPain;
	}

	public String getDizziness() {
		return dizziness;
	}

	public void setDizziness(String dizziness) {
		this.dizziness = dizziness;
	}

	public String getCold() {
		return cold;
	}

	public void setCold(String cold) {
		this.cold = cold;
	}

	public String getSleepless() {
		return sleepless;
	}

	public void setSleepless(String sleepless) {
		this.sleepless = sleepless;
	}

	public String getFlatulence() {
		return flatulence;
	}

	public void setFlatulence(String flatulence) {
		this.flatulence = flatulence;
	}

	public String getDiarrhea() {
		return diarrhea;
	}

	public void setDiarrhea(String diarrhea) {
		this.diarrhea = diarrhea;
	}

	public String getConstipation() {
		return constipation;
	}

	public void setConstipation(String constipation) {
		this.constipation = constipation;
	}

	public String getFever() {
		return fever;
	}

	public void setFever(String fever) {
		this.fever = fever;
	}

	public String getStayUp() {
		return stayUp;
	}

	public void setStayUp(String stayUp) {
		this.stayUp = stayUp;
	}

	public String getBath() {
		return bath;
	}

	public void setBath(String bath) {
		this.bath = bath;
	}

	public String getColdFood() {
		return coldFood;
	}

	public void setColdFood(String coldFood) {
		this.coldFood = coldFood;
	}

	public String getSpicyFood() {
		return spicyFood;
	}

	public void setSpicyFood(String spicyFood) {
		this.spicyFood = spicyFood;
	}

	public String getFriedFood() {
		return friedFood;
	}

	public void setFriedFood(String friedFood) {
		this.friedFood = friedFood;
	}

	public String getCoffeeTea() {
		return coffeeTea;
	}

	public void setCoffeeTea(String coffeeTea) {
		this.coffeeTea = coffeeTea;
	}

	public String getExercise() {
		return exercise;
	}

	public void setExercise(String exercise) {
		this.exercise = exercise;
	}

	public String getHeavyWork() {
		return heavyWork;
	}

	public void setHeavyWork(String heavyWork) {
		this.heavyWork = heavyWork;
	}

	public String getDrink() {
		return drink;
	}

	public void setDrink(String drink) {
		this.drink = drink;
	}

	public String getKaraoke() {
		return karaoke;
	}

	public void setKaraoke(String karaoke) {
		this.karaoke = karaoke;
	}

	public String getShopping() {
		return shopping;
	}

	public void setShopping(String shopping) {
		this.shopping = shopping;
	}

	public String getParty() {
		return party;
	}

	public void setParty(String party) {
		this.party = party;
	}

	public String getExtractTooth() {
		return extractTooth;
	}

	public void setExtractTooth(String extractTooth) {
		this.extractTooth = extractTooth;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public JSONObject toJson() throws JSONException {
		JSONObject json = new JSONObject();
		JSONObject json2 = new JSONObject();
		json2.put("adddate", adddate);
		json2.put("userid", userid);		
		json.put("basicinfoPK", json2);				
		json.put("daytype", daytype);
		json.put("flow", flow);
		json.put("colour", colour);
		json.put("mucus", mucus);
		json.put("temperature", temperature);
		json.put("weight", weight);
		json.put("hadfun", hadfun);
		json.put("takepills", takepills);
		// mood json.put("mood");
		json.put("acne", acne);
		json.put("cramps", cramps);
		json.put("headaches", headaches);
		json.put("backaches", backaches);
		json.put("bloating", bloating);
		json.put("bodyaches", bodyaches);
		json.put("nausea", nausea);
		json.put("neckaches", neckaches);
		json.put("tenderBreasts", tenderBreasts);
		json.put("spotting", spotting);
		json.put("periodPain", periodPain);
		json.put("dizziness", dizziness);
		json.put("cold", cold);
		json.put("sleepless", sleepless);
		json.put("flatulence", flatulence);
		json.put("diarrhea", diarrhea);
		json.put("constipation", constipation);
		json.put("fever", fever);
		json.put("stayUp", stayUp);
		json.put("bath", bath);
		json.put("coldFood", coldFood);
		json.put("spicyFood", spicyFood);
		json.put("friedFood", friedFood);
		json.put("coffeeTea", coffeeTea);
		json.put("exercise", exercise);
		json.put("heavyWork", heavyWork);
		json.put("drink", drink);
		json.put("karaoke", karaoke);
		json.put("shopping", shopping);
		json.put("party", party);
		json.put("extractTooth", extractTooth);
		json.put("note", note);
		return json;
	}
}
